package com.eclipse.e0113_网络编程.socket_文件下载;

import java.io.File;

public class Test {
    public static void main(String[] args) {
        // 读取g盘下的文件名
        File gPan = new File("/Users/liuzhuangzhuang/iotest");

        //文件名
        String[] fileNames = gPan.list();
        for (String fileName : fileNames) {
            System.out.println(fileName);
        }
    }
}
